 <?php
 session_start();

 @mysql_connect('localhost', 'root', 'root');
if (mysql_errno()) {
    die(mysql_errno());
}
mysql_select_db('blog');
mysql_set_charset('utf8');

$sql = "select * from wenzhang order by click desc";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
    $arr[] = $row;
}
$sql_title = "select * from title ";
$res_title = mysql_query($sql_title);
while ($row = mysql_fetch_assoc($res_title)) {
    $arr_title[] = $row;
}

mysql_close();
    $a =file_get_contents("tongji.txt");

 ?>

<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>个人博客模板古典系列之——江南墨卷</title>
<meta name="keywords" content="个人博客模板古典系列之——江南墨卷" />
<meta name="description" content="个人博客模板古典系列之——江南墨卷" />
<link href="css/base.css" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<div class="topnav">
<a href="http://www.yangqq.com/download/div/2017-07-16/785.html" target="_blank">个人博客模板古典系列之——江南墨卷</a><?php echo @ ($_SESSION['islogin']==1)?'<b>欢迎'.$_SESSION['uname'].'</b>':'<a href="denglu.php">请登陆</a><a href="zhuce.php">注册</a>'  ?>
 <a href="zhuxiao.php">注销</a>
</div>

<div id="wrapper">
  <header>
    <div class="headtop"></div>
    <div class="contenttop">
      <div class="logo f_l">个人博客模板古典系列之——江南墨卷</div>
      <div class="search f_r">
        <form action="/e/search/index.php" method="post" name="searchform" id="searchform">
          <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字'}" type="text">
          <input name="show" value="title" type="hidden">
          <input name="tempid" value="1" type="hidden">
          <input name="tbname" value="news" type="hidden">
          <input name="Submit" class="input_submit" value="搜索" type="submit">
        </form>
      </div>
      <div class="blank"></div>
      <nav>
        <div  class="navigation">
          <ul class="menu">
            <li><a href="index.php">网站首页</a></li>
            <li><a href="#">关于我</a>
              <ul>
                <li><a href="about.html">个人简介</a></li>
                <li><a href="listpic.html">个人相册</a></li>
              </ul>
            </li>
            <li><a href="#">文章类别</a>
              <ul>
              <?php
                      foreach ($arr_title as  $value) {
               echo'         <li><a href="newslistpic.php?name='.$value['name'].'">'.$value['name'].'</a></li> ';
                      }
              ?>

             
              </ul>
            </li>
       
            <li><a href="liuyan.php">给我留言</a> </li>
          </ul>
        </div>
      </nav>
      <SCRIPT type=text/javascript>
	// Navigation Menu
	$(function() {
		$(".menu ul").css({display: "none"}); // Opera Fix
		$(".menu li").hover(function(){
			$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown("normal");
		},function(){
			$(this).find('ul:first').css({visibility: "hidden"});
		});
	});
</SCRIPT> 
    </div>
  </header>
  <div class="jztop"></div>
  <div class="container">
    <div class="bloglist f_l">
    <?php
       foreach ($arr as $v) {
  echo '<h3><a href="/jstt/bj/2017-07-13/784.html">'.$v['title'].'</a></h3>
      <figure><img src="/public/pic/'.$v['pic'].'" alt="【心路历程】请不要在设计这条路上徘徊啦"></figure>
      <ul>
        <p>'.mb_substr(strip_tags($v['content']), 0,65).'</p>
        <a title="【心路历程】请不要在设计这条路上徘徊啦" href="readmore.php?id='.$v['id'].'" target="_blank" class="readmore">阅读全文&gt;&gt;</a>
      </ul>
      <p class="dateview"><span>' . date('Y-m-d', $v['ctime']) . '</span><span>点击量：'.$v['click'].'</span><span>个人博客：[<a href="/jstt/bj/">心得笔记</a>]</span></p>';
       }

    ?>
      
    </div>
    <div class="r_box f_r">
      <div class="tit01">
        <h3 class="tit">关注我</h3>
        <div class="gzwm">
          <ul>
            <li><a class="email" href="iphone.php" target="_blank">我的电话</a></li>
            <li><a class="qq" href="email.php" target="_blank">我的邮箱</a></li>
            <li><a class="tel" href="QQ.php" target="_blank">我的QQ</a></li>
           
          </ul>
        </div>
      </div>
      <!--tit01 end-->
      
      <div class="tuwen">
        <h3 class="tit">图文推荐</h3>
        <ul>
          <li><a href="/"><img src="images/01.jpg"><b>住在手机里的朋友</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/02.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/" title="手机的16个惊人小秘密，据说99.999%的人都不知"><img src="images/03.jpg"><b>手机的16个惊人小秘密，据说...</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/06.jpg"><b>住在手机里的朋友</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/04.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/02.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/" title="手机的16个惊人小秘密，据说99.999%的人都不知"><img src="images/03.jpg"><b>手机的16个惊人小秘密，据说...</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
        </ul>
      </div>
      <div class="ph">
        <h3 class="tit">点击排行</h3>
        <ul class="rank">
             <?php 
                     foreach ($arr as $v) {
                echo' <li><a href="/jstt/bj/2017-07-13/784.html"  target="_blank">'.$v['title'].'</a></li>';

                     }
         ?>
        </ul>
      </div>
      <div class="ad"> <img src="images/03.jpg"> </div>
    </div>
  </div>
  <!-- container代码 结束 -->
  <div class="jzend"></div>
  <footer>
    <div class="footer">
      <div class="f_l">
        <p>All Rights Reserved 版权所有：<a href="http://www.yangqq.com">杨青个人博客</a> 备案号：蜀ICP备00000000号</p>
      </div>
      <div class="f_r textr">
        <p>Design by DanceSmile</p>
      </div>
    </div>
  </footer>
</div>
</body>
</html>
